package com.kaifamiao.www.IP.do0928;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {

    public static void main(String[] args) {

        try {
            ServerSocket socket = new ServerSocket(9527);
            while (true){
                Socket accept = socket.accept();
                InputStream inputStream = accept.getInputStream();
                byte[] bytes = inputStream.readAllBytes();
                System.out.println(new String(bytes));
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
